﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace MVC4WPF.Automation.Dialog
{
    /// <summary>
    /// Utility class that holds the basic graphic images used in MVC4WPF.
    /// </summary>
    public static class DialogGraphics
    {

        public static Bitmap MVCItemGraphic(Data.MVCItemType itemType)
        {
            Bitmap returnGraphic = null;

            switch (itemType)
            {
                case MVC4WPF.Automation.Data.MVCItemType.PropertyBag:

                    returnGraphic = Automation.Properties.Resources.RecycleBin;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewWindowContract:

                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewPageContract:

                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewUserControlContract:

                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewWindow:

                    returnGraphic = Automation.Properties.Resources.XAML_file;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewPage:

                    returnGraphic = Automation.Properties.Resources.XAML_file;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ViewUserControl:
                    returnGraphic = Automation.Properties.Resources.XAML_file;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.WindowControllerContract:
                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.PageControllerContract:
                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.UserControlControllerContract:
                    returnGraphic = Automation.Properties.Resources.Contract;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.WindowController:
                    returnGraphic = Automation.Properties.Resources.Gear;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.PageController:
                    returnGraphic = Automation.Properties.Resources.Gear;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.UserControlController:
                    returnGraphic = Automation.Properties.Resources.Gear;
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.ModelContract:
                    returnGraphic = Automation.Properties.Resources.Contract;
                  
                    break;

                case MVC4WPF.Automation.Data.MVCItemType.Model:
                    returnGraphic = Automation.Properties.Resources.VPN;
                    break;

                default:
                    break;
            }

            return returnGraphic;

        }

    }
}
